home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amoszine 7
/
Amoszine 7 (Disk 3 of 3).adf
/
ARCHIVES
/
Paul_Overy.lha
/
Iff_Info.amos
/
Iff_Info.amosSourceCode
Wrap
AMOS Source Code
|
1995-06-03
|
2KB
|
65 lines
'By Paul Overy
'
'This method works, no fixed locations are read!!!
'
'
Screen Open 0,640,256,2,Hires : Cls 0 : Palette 0,$CCC
_IFF$=Fsel$("","","Find a Iff picture")
Open In 1,_IFF$ : _LOF=Lof(1) : Close 1
Reserve As Work 15,_LOF : Bload _IFF$,15
'
_FORM=Hunt(Start(15) To Extension_12_0AD8(15),"FORM")
Print Chr$(Peek(_FORM));
Print Chr$(Peek(_FORM+1));
Print Chr$(Peek(_FORM+2));
Print Chr$(Peek(_FORM+3));
Print Leek(_FORM+4);" [Chunk]"
'
_ILBM=Hunt(Start(15) To Extension_12_0AD8(15),"ILBM")
Print Chr$(Peek(_ILBM));
Print Chr$(Peek(_ILBM+1));
Print Chr$(Peek(_ILBM+2));
Print Chr$(Peek(_ILBM+3))
'
_BMHD=Hunt(Start(15) To Extension_12_0AD8(15),"BMHD")
Print Chr$(Peek(_BMHD));
Print Chr$(Peek(_BMHD+1));
Print Chr$(Peek(_BMHD+2));
Print Chr$(Peek(_BMHD+3));
Print Leek(_BMHD+4);" [Chunk]"
Print Deek(_BMHD+8);" [Width]"
Print Deek(_BMHD+10);" [Hight]"
Print Deek(_BMHD+12);" [X pos]"
Print Deek(_BMHD+14);" [Y pos]"
Print Peek(_BMHD+16);" [No#planes /";Peek(_BMHD+16)^2;" colours]"
Print Peek(_BMHD+17);" [Masking]"
Print Peek(_BMHD+18);" [Compression]"
Print Peek(_BMHD+19);" [Future/Pad]"
Print Deek(_BMHD+20);" [Transparent Col]"
Print Peek(_BMHD+22);" [Ratio Width]"
Print Peek(_BMHD+23);" [Ratio Height]"
Print Deek(_BMHD+24);" [Page Width]"
Print Deek(_BMHD+26);" [Page Height]"
'
_CMAP=Hunt(Start(15) To Extension_12_0AD8(15),"CMAP")
_CMAP_CHUNK=Leek(_CMAP+4)
_COL_MAP=_CMAP+8
_COL_MAP_LAST=_COL_MAP+_CMAP_CHUNK
Print Chr$(Peek(_CMAP));
Print Chr$(Peek(_CMAP+1));
Print Chr$(Peek(_CMAP+2));
Print Chr$(Peek(_CMAP+3));
Print _CMAP_CHUNK;" [Colour map chunk]"
For _INDEX=_COL_MAP To _COL_MAP_LAST
Print Peek(_INDEX);
Next _INDEX
_BODY=Hunt(Start(15) To Extension_12_0AD8(15),"BODY")
_BODY_CHUNK=Leek(_BODY+4)
_BODY_BYTES=_BODY+8
_BODY_BYTES_LAST=_BODY_BYTES+_BODY_CHUNK
Print
Print Chr$(Peek(_BODY));
Print Chr$(Peek(_BODY+1));
Print Chr$(Peek(_BODY+2));
Print Chr$(Peek(_BODY+3));
Print _BODY_CHUNK;" [Chunk]"